package com.spj.pojo;

import java.math.BigDecimal;
import java.util.ArrayList;

public class Order {
	private int id;
	private String orderno;
	private int userid;
	private String ordertime;
	private String accept;
	private String telphone;
	private String address;
	private BigDecimal money;
	private String paytype;
	private String status;
	private ArrayList<OrderItem> orders;

	public Order() {

	}

	public Order(int id, String orderno, int userid, String ordertime, String accept, String telphone, String address,
			BigDecimal money, String paytype, String status, ArrayList<OrderItem> orders) {
		super();
		this.id = id;
		this.orderno = orderno;
		this.userid = userid;
		this.ordertime = ordertime;
		this.accept = accept;
		this.telphone = telphone;
		this.address = address;
		this.money = money;
		this.paytype = paytype;
		this.status = status;
		this.orders = orders;
	}

	public int getId() {
		return id;
	}

	public void setId(int id) {
		this.id = id;
	}

	public String getOrderno() {
		return orderno;
	}

	public void setOrderno(String orderno) {
		this.orderno = orderno;
	}

	public int getUserid() {
		return userid;
	}

	public void setUserid(int userid) {
		this.userid = userid;
	}

	public String getOrdertime() {
		return ordertime;
	}

	public void setOrdertime(String ordertime) {
		this.ordertime = ordertime;
	}

	public String getAccept() {
		return accept;
	}

	public void setAccept(String accept) {
		this.accept = accept;
	}

	public String getTelphone() {
		return telphone;
	}

	public void setTelphone(String telphone) {
		this.telphone = telphone;
	}

	public String getAddress() {
		return address;
	}

	public void setAddress(String address) {
		this.address = address;
	}

	public BigDecimal getMoney() {
		return money;
	}

	public void setMoney(BigDecimal money) {
		this.money = money;
	}

	public String getPaytype() {
		return paytype;
	}

	public void setPaytype(String paytype) {
		this.paytype = paytype;
	}

	public String getStatus() {
		return status;
	}

	public void setStatus(String status) {
		this.status = status;
	}

	public ArrayList<OrderItem> getOrders() {
		return orders;
	}

	public void setOrders(ArrayList<OrderItem> orders) {
		this.orders = orders;
	}

	@Override
	public String toString() {
		return "Order [id=" + id + ", orderno=" + orderno + ", userid=" + userid + ", ordertime=" + ordertime
				+ ", accept=" + accept + ", telphone=" + telphone + ", address=" + address + ", money=" + money
				+ ", paytype=" + paytype + ", status=" + status + ", orders=" + orders + "]";
	}

}
